<?php


/*Route::put('/category/admin/home/list/(:num)', function($pid)
{
    return Redirect::to('category/admin/');
});

Route::put('/category/admin/home/create/(:num)', function($pid)
{
    return Redirect::to('category/admin/create');
});*/

Route::get('products/all/(:num)','Products::home@all');
Route::get('products/add/(:num)','Products::home@add');
Route::post('products/add/(:num)','Products::home@add');



Route::get('products/edit/(:num)','Products::home@edit');
Route::post('products/edit/(:num)','Products::home@edit');

Route::post('products/sendenquiry','Products::home@sendenquiry');
Route::post('products/requirement/add','Products::widget.requirement@requirement');

Route::get('products/delete/(:num)/(:any)','Products::home@delete');


Route::post('products/requirement/lead','Products::widget.requirement@lead');
Route::get('products/detail/(:any)/(:num)','Products::home@detail');

Route::get('products/buylead/reply/(:any)/(:num)','Products::home@reply');

Route::get('products/(:any)','Products::home@product');

Route::get('products/buylead/(:any)/(:any)','Products::home@buylead');

